package top.wardyan.wbaseswt.conf;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Display;
import org.eclipse.wb.swt.SWTResourceManager;

public class Const {

	//public static final String FONT = 
	public static Font getDefaultFont() {
		return FONT12;
	}
	
	public static final Display DISPLAY = Display.getCurrent();
	
	public static final Font FONT9 = new Font(DISPLAY,"新宋体", 9, SWT.NORMAL);
	public static final Font FONT10 = new Font(DISPLAY,"新宋体", 10, SWT.NORMAL);
	public static final Font FONT12 = new Font(DISPLAY,"新宋体", 12, SWT.NORMAL);
	public static final Font FONT14 = new Font(DISPLAY,"新宋体", 14, SWT.NORMAL);
	public static final Font FONT16 = new Font(DISPLAY,"新宋体", 16, SWT.NORMAL);
	public static final Font FONT20 = new Font(DISPLAY,"新宋体", 20, SWT.NORMAL);
	public static final Font FONT24 = new Font(DISPLAY,"新宋体", 24, SWT.NORMAL);
	public static final Font FONT28 = new Font(DISPLAY,"新宋体", 28, SWT.NORMAL);
	public static final Font FONT32 = new Font(DISPLAY,"新宋体", 32, SWT.NORMAL);
	public static final Font FONT36 = new Font(DISPLAY,"新宋体", 36, SWT.NORMAL);
	public static final Font FONT40 = new Font(DISPLAY,"新宋体", 40, SWT.NORMAL);
	public static final Font FONT44 = new Font(DISPLAY,"新宋体", 44, SWT.NORMAL);
	public static final Font FONT48 = new Font(DISPLAY,"新宋体", 48, SWT.NORMAL);
	public static final Font FONT56 = new Font(DISPLAY,"新宋体", 56, SWT.NORMAL);
	public static final Font FONT64 = new Font(DISPLAY,"新宋体", 64, SWT.NORMAL);
	public static final Font FONT72 = new Font(DISPLAY,"新宋体", 72, SWT.NORMAL);
	public static final Font FONT80 = new Font(DISPLAY,"新宋体", 80, SWT.NORMAL);
	public static final Font FONT96 = new Font(DISPLAY,"新宋体", 96, SWT.NORMAL);
	public static final Font FONT108 = new Font(DISPLAY,"新宋体", 108, SWT.NORMAL);
	
	// 颜色

	// 尺寸
	public static final Point POINT1024 = new Point(1024, 720);
	
	public static final Color COLOR_WHITE = new Color(DISPLAY, 255, 255, 255);
	public static final Color COLOR_BLACK = new Color(DISPLAY, 0, 0, 0);
	public static final Color COLOR_BLUE = new Color(DISPLAY, 0, 0, 255);
	public static final Color COLOR_YELLOW = new Color(DISPLAY, 255, 255, 0);
	public static final Color COLOR_RED = new Color(DISPLAY, 255, 0, 0);
	public static final Color COLOR_GREEN = new Color(DISPLAY, 0, 255, 0);
	/** 灰色 **/
	public static final Color COLOR_GRAY = new Color(DISPLAY, 194, 204, 208);
	
	
	//public static final Image ICON = new Image(Display.getCurrent(), PropKit.use("").getBoolean("devMode", true) ? "/conf/pics/umbrella.png" : "conf/pics/umbrella.png");
	
	public static final Image ICON = SWTResourceManager.getImage(Const.class, "/conf/pics/umbrella.png");
	
	
	
	
}
